package com.jmb.waimao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jmb.waimao.entity.EmailTask;

/**
 * Service interface for EmailTask
 */
public interface EmailTaskService extends IService<EmailTask> {
    
    /**
     * Create a new email task
     * 
     * @param emailTask Email task to create
     * @return Created email task
     */
    EmailTask createTask(EmailTask emailTask);
    
    /**
     * Execute an email task (send emails)
     * 
     * @param taskId Task ID
     * @return true if successful, false otherwise
     */
    boolean executeTask(Long taskId);
    
    /**
     * Get task status
     * 
     * @param taskId Task ID
     * @return Email task with current status
     */
    EmailTask getTaskStatus(Long taskId);
}
